
//
//  TaskViewCell.m
//  PASystem
//
//  Created by 刘沿 on 16/9/23.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "TaskViewCell.h"
#import "UILabel+time.h"
@implementation TaskViewCell

+ (instancetype)WithTaskViewCell{

    return [[[NSBundle mainBundle] loadNibNamed:@"TaskViewCell" owner:nil options:nil] lastObject];
}

- (void)setModel:(TaskModel *)model{
    _model = model;

    self.TITLE.text = model.TITLE;

    NSString *str = [UILabel withTimeStr:model.CREATETIME];
    self.CREATETIME.text = str;
    if ([model.COUNTH isEqualToString:@"0"]) {
        
        self.COUNTH.text = @"学习";
    }else{
    
    self.COUNTH.text = @"已学习";
    }
    
}



@end
